<?php
/*
 * @Descripttion: 
 * @version: 
 * @Author: 奇辰科技
 * @Date: 2021-09-06 00:28:35
 * @LastEditors: lokei
 * @LastEditTime: 2022-10-28 19:46:58
 */

namespace App\Http\Controllers\Scrm\Fx;

use App\Common\Tools\ResultTool;
use App\Http\Controllers\Controller;
use App\Models\Scrm\Fx\CoreModel;
use Illuminate\Http\Request;

class FollowController extends Controller
{
	public function ofMember(Request $request)
	{
		$items = CoreModel::where('pre_uid', '=', $request->input('uid'))->with(array('next_user' =>function($query) {
			$query->select('uid', 'avatar', 'nickname', 'mobile');
		}))->get();
		$result = ResultTool::success();
		$result['data']['items'] = $items;
		return $result;
	}

}
